<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>任务管理器监控内存</title>
</head>
<body>
  <button id="btn">Add</button>
  <script>
    // ctrl + esc 打开浏览器任务管理器
    // 查看 js内存是否在增加
    var btn = document.getElementById('btn');
    btn.onclick = function () {
      let arrList = new Array(1000000)
    }
  </script>
</body>
</html>